local jw_zhenxiao = fk.CreateSkill {
    name = "jw_zhenxiao",
    tags = { Skill.Permanent },
}

Fk:loadTranslationTable {
    ["jw_zhenxiao"] = "震啸",
    [":jw_zhenxiao"] = "持恒技，你可以将X张牌当做一张【杀】使用或打出(X为此技能的发动次数，至多为2)。",

}

jw_zhenxiao:addEffect("viewas", {
    prompt = function(self, player)
        return "震啸：请选择" .. math.min(player:usedSkillTimes(self.name, Player.HistoryTurn), 2) .. "张牌，当做【杀】使用或打出"
    end,
    pattern = "slash",
    mute_card = false,
    handly_pile = true,
    filter_pattern = {
        min_num = 0,
        max_num = 2,
        pattern = ".|.|.|^equip",
    },
    view_as = function(self, player, cards)
        local n = math.min(player:usedSkillTimes(self.name, Player.HistoryTurn), 2)
        if #cards ~= n then return nil end
        local c = Fk:cloneCard("slash")
        c.skillName = "jw_zhenxiao"
        c:addSubcards(cards)
        return c
    end,
})

return jw_zhenxiao
